#include <iostream>
#include <iomanip>
using namespace std;


int main()
{
    float a = 0.1;
    float b = 0.2;
    float c = 0.3;

    printf("printf output:\n");
    printf("%.2f\n%.2f\n%.2f\n", a, b, c);
    
    printf("cout output:\n");
    cout << fixed << setprecision(2) << a << "\n" << b << "\n" << c << "\n"<< endl;
    return 0;
}